package kr.icg.icgmshtest1;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;


@PersistenceCapable
public class Wish {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;
	
	@Persistent
	private String toNameFirst;
	
	@Persistent
	private String toNameLast;
	
	@Persistent
	private int contentNumber;
	
	@Persistent
	private Date date;
	
	public Wish(String toNameFirst, String toNameLast, int contentNumber, Date date) {
		this.toNameFirst = toNameFirst;
		this.toNameLast = toNameLast;
		this.contentNumber = contentNumber;
		this.date = date;
	}
	
	public Key getKey() {
		return key;
	}
	
	public String getToNameFirst() {
		return toNameFirst;
	}
	
	public String getToNameLast() {
		return toNameLast;
	}
	
	public int getContentNumber() {
		return contentNumber;
	}
	
	public Date getDate() {
		return date;
	}
	
	public void setToNameFirst(String toNameFirst) {
		this.toNameFirst = toNameFirst;
	}
	
	public void setToNameLast(String toNameLast) {
		this.toNameLast = toNameLast;
	}
	
	public void setContentNumber(int contentNumber) {
		this.contentNumber = contentNumber;
	}
	
	public void setDate(Date date) {
		this.date = date;
	}
}
